package com.lj.eduservice.client;

import com.lj.eduservice.client.impl.VodClientImpl;
import com.lj.utils.result.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;


@Component
@FeignClient(value = "service-vod",fallback = VodClientImpl.class)   //要调用的服务名
public interface VodClient {

    @DeleteMapping("/vod/delete/{id}")
    ResultVO<Boolean> delete(@PathVariable("id") String id);
}
